﻿<%@ Page Title="GetTransactionDetails" Language="C#" MasterPageFile="~/Admin/Membership.master" AutoEventWireup="true"
    CodeFile="GetTransactionDetails.aspx.cs" Inherits="Admin_GetTransactionDetails" %>

<%@ Register Src="~/UserControl/Error.ascx" TagName="PayPal" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <span id="apiheader">GetTransactionDetails</span>
    <br>
    <br>   <br />
    <br />
     <br />
    <table class="api" align="center">
        <tr>
            <td class="header">
                Transaction ID:
            </td>
            <td>
                <asp:TextBox runat="server" ID="transactionID" Text=""></asp:TextBox>
                (Required)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <asp:Button runat="server" ID="GetButton" OnClick="GetButton_Click" Text="Submit">
                    </asp:Button></center>
            </td>
        </tr>
    </table>
    <table id="TransactionSearch" runat="server" visible="false"  align="center">
        <tr>
            <td>
            <asp:PlaceHolder runat="server" ID="TransactionDetailsPlaceHolder">
        <center>
            <b><span id="Span1">Transaction Details</span></b>
            <br>
            <br>
            <table>
                <tr>
                    <td>
                        Payer:
                    </td>
                    <td>
                        <asp:Literal ID="PayerLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PayerInfo.Payer%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Payer ID:
                    </td>
                    <td>
                        <asp:Literal ID="PayerIDLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PayerInfo.PayerID%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        First Name:
                    </td>
                    <td>
                        <asp:Literal ID="FirstNameLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PayerInfo.PayerName.FirstName%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Last Name:
                    </td>
                    <td>
                        <asp:Literal ID="LastNameLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PayerInfo.PayerName.LastName%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Transaction ID:
                    </td>
                    <td>
                        <asp:Literal ID="TransactionIDLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.TransactionID%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Parent Transaction ID (if any):
                    </td>
                    <td>
                        <asp:Literal ID="ParentTransactionIDLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.ParentTransactionID%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Gross Amount:
                    </td>
                    <td>
                        <asp:Literal ID="CurrencyLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.GrossAmount.currencyID%>">
                        </asp:Literal>
                        <asp:Literal ID="GrossAmountLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.GrossAmount.Value%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Payment Status:
                    </td>
                    <td>
                        <asp:Literal ID="PaymentStatusLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.PaymentStatus%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Pending Reason:
                    </td>
                    <td>
                        <asp:Literal ID="PendingReasonLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.PendingReason%>">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        Protection Eligibility:
                    </td>
                    <td>
                        <asp:Literal ID="ProtectionEligibilityLiteral" runat="server" Text="<%#GetTransactionDetailsResponse.PaymentTransactionDetails.PaymentInfo.ProtectionEligibility%>">
                        </asp:Literal>
                    </td>
                </tr>
            </table>
        </center>
    </asp:PlaceHolder>
            </td>
        </tr>
    </table>
    
    <br>
    <br>
  <%-- <uc4:PayPal ID="Errors" runat="server" />--%>
</asp:Content>
